<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); 
$tp = $this->baseurl.'/templates/'.$this->template;
$menu = & JSite::getMenu();
$isHp = 0;
if ($menu->getActive() == $menu->getDefault()) {
	$isHp = 1;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
	<link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
	<script type="text/javascript" src="<?php echo $tp ?>/js/lib/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<?php echo $tp ?>/js/fnc.js"></script>
 	<link rel="stylesheet" href="<?php echo $tp ?>/css/template.css" type="text/css" charset="utf-8">
	<link rel="stylesheet" href="<?php echo $tp ?>/css/products.css" type="text/css" charset="utf-8">
	<!--[if lte IE 6]>
	<link href="<?php echo $tp ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
	<![endif]-->
</head>
<body>
	<div id="wapper">
		<div class="topArea">
			<div class="logoArea">
				<div class="logo"><img src="<?php echo $tp ?>/images/cpj-logo.png" alt=""></div>
				<div class="languageArea">	  
					<div><a href="#">Vietnam</a> | <a href="#">English</a></div>
				</div>
			</div>
		</div>
		<div class="menuArea">
			<div class="menuBg">
				<ul class="menu">
					<li id="current" class="active1 item1"><a href="<?php echo $this->baseurl ?>"><span><?php echo JText::_('HOME') ?></span></a></li>
					<li class="parent item19"><a href="#19"><span><?php echo JText::_('WEDDING') ?></span></a></li>
					<li class="item20"><a href="#20"><span><?php echo JText::_('BRACELETS') ?></span></a></li>
					<li class="item21"><a href="#21"><span><?php echo JText::_('EARRINGS') ?></span></a></li>
					<li class="item22"><a href="#22"><span><?php echo JText::_('NECKLACES') ?></span></a></li>
					<li class="item23"><a href="#23"><span><?php echo JText::_('RINGS') ?></span></a></li>
					<li class="item24"><a href="#24"><span><?php echo JText::_('CLEARANCES') ?></span></a></li>
					<li class="item25"><a href="#"><span><?php echo JText::_('E-CATALOGS') ?></span></a></li>
				</ul>        
			</div>
			<div class="cartArea">
				<a href="#" target="_blank"><img src="<?php echo $tp ?>/images/shopping_cart red.png"></a>
			</div>
		</div>
		<div class="bodyArea"> 
		<?php if($isHp):?>
		<?php include_once 'hp.php';?>
		<?php else:?>
		<jdoc:include type="message" />
		<jdoc:include type="modules" name="bottom" style="xhtml" />
			<div id="containner">
				<div id="sidebar">
					<div id="breadcrum">Earrings</div>
					<jdoc:include type="modules" name="sidebar" style="xhtml" />
					
					<div class="Module">
					<img src="<?php echo $tp ?>/products/Picture2.png" width="200" />
					</div>
				</div>   
				<div id="mainContain">
					<div class="Banner"><img src="<?php echo $tp ?>/products/Picture3.png" width="740" /></div>
					<jdoc:include type="modules" name="top" style="xhtml" />
					<div id="contain">
						<jdoc:include type="message" />
						<jdoc:include type="component" />	
					</div>
				</div>   
			</div>
		<?php endif;?>     
		</div>
		<div class="footerArea">
			<div class="footerMenuArea">
				<div class="menuFt">
					<ul class="menu">
						<li id="current" class="item1"><a href="#"><span><?php echo JText::_('ABOUT CPJ') ?></span></a></li>
						<li class="parent item19"><a href="#"><span><?php echo JText::_('CAREER') ?></span></a></li>
						<li class="item20"><a href="#"><span><?php echo JText::_('ZODIAC') ?></span></a></li>
						<li class="item21"><a href="#"><span><?php echo JText::_('EDUCATION') ?></span></a></li>
						<li class="item22"><a href="#"><span><?php echo JText::_('EVENT') ?></span></a></li>
						<li class="item23"><a href="#"><span><?php echo JText::_('CONTACT') ?></span></a></li>
						<li class="item24"><a href="#"><span><?php echo JText::_('PARTNER & INVEST') ?></span></a></li>
						<li class="item25"><a href="#"><span><?php echo JText::_('SEARCH') ?></span></a></li>
					</ul>        
				</div>
				<div class="socialArea">
					<a href="#" target="_blank"><img src="<?php echo $tp ?>/images/facebook.png" border="0" width="25"></a>&nbsp;<a href="#" target="_blank"><img src="<?php echo $tp ?>/images/twitter.png" border="0" width="25"></a>
				</div>
			</div>
			<div class="footerInfo">Copyright © 2011  by <a href="<?php echo $this->baseurl?>">www.cpj.com.vn</a>, All right reserved</div>
		</div>
	</div>
	<jdoc:include type="modules" name="debug" />
</body>
</html>